import request from "../utils/request";

export const queryClazzsApi = (name,begin,end,page,pageSize) => 
  request.get(`/clazzs?name=${name}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`)

export const addClazzApi = (clazz) => request.post('/clazzs',clazz)

export const queryByIdApi = (id) => request.get(`/clazzs/${id}`)

export const updateClazzApi = (clazz) => request.put('/clazzs',clazz)

export const deleteClazzApi = (id) => request.delete(`/clazzs/${id}`)

export const queryAllClazzApi = () => request.get('/clazzs/list')